﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterALSafa.Master" AutoEventWireup="true"
    CodeBehind="GradeSuccessPolicy.aspx.cs" Inherits="School.Pages.Teaching.GradeSuccessPolicy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <div id="displaybox">
                <div>
                    جارى تنفيذ الأمر</div>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <h1>
        سياسة نجاح الصف</h1>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table>
                <tr>
                    <td>
                        المجمع
                    </td>
                    <td>
                        <asp:DropDownList ID="LstCampuses" runat="server" OnSelectedIndexChanged="LstCampuses_SelectedIndexChanged"
                            AutoPostBack="True">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        الشهادة
                    </td>
                    <td>
                        <asp:DropDownList ID="LstCertificates" runat="server" AutoPostBack="True" OnSelectedIndexChanged="LstCertificates_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        المرحلة
                    </td>
                    <td>
                        <asp:DropDownList ID="LstStages" runat="server" AutoPostBack="True" OnSelectedIndexChanged="LstStages_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        الصف
                    </td>
                    <td>
                        <asp:DropDownList ID="LstGrades" runat="server" AutoPostBack="True" OnSelectedIndexChanged="LstGrades_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
            <asp:Panel ID="Panel1" runat="server" Visible="false">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%"
                    CssClass="Grid" HeaderStyle-CssClass="GridHeaderFooter" FooterStyle-CssClass="GridHeaderFooter"
                    PagerStyle-CssClass="GridPager" 
                    AlternatingRowStyle-CssClass="GridItemAltername">
                    <Columns>
                        <asp:BoundField DataField="SubjectName" HeaderText="المادة" ItemStyle-Width="20%" />                        
                        <asp:TemplateField HeaderText="النوع">
                            <ItemTemplate>
                                <asp:Label ID="LblSubjectId" runat="server" Text='<%# Eval("SubjectId") %>' Visible="false"></asp:Label>
                                <asp:DropDownList ID="DdlType" runat="server">
                                    <asp:ListItem Text="تضاف للمجموع" Value="1" />
                                    <asp:ListItem Text="نجاح و رسوب" Value="2" />
                                    <asp:ListItem Text="بدون امتحان" Value="3" />
                                </asp:DropDownList>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <asp:Button ID="Button1" runat="server" Text="حفظ" OnClick="Button1_Click" />
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
